Skip to content

feat(skills): add session-quality-gate — session-end learning verification - #331

Closed
YuhaoLin2005 wants to merge 10 commits into
addyosmani:mainfrom
YuhaoLin2005:add-session-quality-gate
Closed

YuhaoLin2005 wants to merge 10 commits into
addyosmani:mainfrom
YuhaoLin2005:add-session-quality-gate

Conversation

@YuhaoLin2005

@YuhaoLin2005 YuhaoLin2005 commented Jun 26, 2026 •

Copy link
Copy Markdown

What this is

A session-end verification skill — asks "did this session produce transferable learning, or did we just ship and forget?" before allowing work to conclude.

Four-dimension self-audit before shipping:

  1. Completeness — Did I answer everything the user asked?
  2. Consistency — Did I contradict myself or the rules?
  3. Groundedness — Did I show evidence, or just claim things work?
  4. Honesty — Am I being honest about what wasn't done?

Then: Learning Capture → Disk Check → Rationalization Detection. Works with any project structure — adapt the capture paths to whatever you use (Notion, Obsidian, plain Markdown, nothing at all).

No specific file system required. The verification framework is the value; wire it to your own capture system.

How it complements this repo

agent-skills has production-readiness and code-quality covered. It doesn't have session-hygiene — the discipline of verifying that work finished clean before moving on.

Existing skill Checks This adds
shipping-and-launch Deploy safety Thinking completeness at session end
code-review-and-quality Code correctness Learning capture quality
doubt-driven-development Surface uncertainty during work Audit completeness after work

Same verification-gate architecture (checklist + rationalizations + red flags), different dimension — thinking quality rather than code or deploy quality.

Structure

  • Self-Audit (C/C/G/H: Completeness, Consistency, Groundedness, Honesty) → Learning Capture → Disk Check → Rationalization Detection
  • Common rationalizations with rebuttals
  • Disk thresholds with concrete references

Extracted from practice

Derived from a learning-capture workflow used across many sessions. Before verification, same debugging mistakes repeated. After, cross-session knowledge transfer became measurable.

@YuhaoLin2005
YuhaoLin2005 force-pushed the add-session-quality-gate branch from 3336107 to 0436976 Compare June 27, 2026 15:49
@YuhaoLin2005 YuhaoLin2005 changed the title feat(skills): add session-quality-gate — self-audit + learning capture before shipping feat(skills): add session-quality-gate — session-end learning verification Jun 27, 2026
@addyosmani

Copy link
Copy Markdown
Owner

There's something here, but a session-end learning gate overlaps both the handoff work and the eval-learn-loop proposals already in flight, and I don't want three skills converging on "capture what this session taught us." I'd rather consolidate that into one well-shaped skill than land near-duplicates. Let me get the session-continuity story straight first, then this either merges into it or fills a genuinely distinct slot.

@YuhaoLin2005

Copy link
Copy Markdown
Author

Good call on the overlap — it's real. The piece I think is genuinely distinct is rationalization-detection: patterns like "I'll write it next session" or "changes too small to audit" — the moments you decide not to capture anything. Handoff and eval-learn-loop capture what was learned, but neither catches the decision to skip the capture. Happy to wait until you've settled the consolidation architecture and retool this as the gate component if it fits. No rush.

@YuhaoLin2005

Copy link
Copy Markdown
Author

@addyosmani Thanks for the review — you were right about the overlap. I went ahead and restructured:

Rationalization detection — catching "I'll write it next session" / "changes too small to audit" — now lives as a pre-write sanity check in handoff (references/rationalization_detection.md). That was the genuinely distinct piece — detecting moments you decide NOT to capture anything, which neither handoff nor eval-learn-loop covers.

What I didn't merge into handoff: self-audit, structured learning capture, and disk check. These don't fit handoff's document-structure scope. If eval-learn-loop is the natural home for "what was learned," I can contribute those there instead.

This PR now deprecates the standalone skill and points to handoff. Let me know if this direction works.

@YuhaoLin2005

Copy link
Copy Markdown
Author

@addyosmani Following up on your consolidation feedback:

What happened:

  • Rationalization-detection (the genuinely distinct piece — catching moments you decide NOT to capture anything) has been extracted to in claude-skills. Neither handoff nor eval-learn-loop covers this detection pattern, so it fills a real slot.
  • Self-audit + learning capture + disk check — these overlap with eval-learn-loop's scope and don't need a standalone skill.

What I'm doing:
Closing this PR. The rationalization-detection piece already landed in the right place (handoff). If eval-learn-loop needs the self-audit or learning-capture components, happy to contribute those as a focused PR to that skill instead.

Thanks for the honest review — the overlap was real and the consolidation direction was right.

@addyosmani

Copy link
Copy Markdown
Owner

Thanks. Session-end learning capture is part of the repository-memory pipeline in #429. Closing in favor of that; happy to see this shape the log tier there.

@addyosmani addyosmani closed this Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants